/**
 * @author: XJC
 * @date: 2023-11-29 16:57
 * @description：shelf_manage_img
 * @update: 2023-11-29 16:57
 */
import request from '@/utils/request'

// 新增货架
export function save(data) {
  return request({
    url: '/goodsShelvesInfo/save',
    method: 'post',
    data
  })
}
// 查询货架
export function queryList(params) {
  return request({
    url: '/goodsShelvesInfo/queryList',
    method: 'get',
    params
  })
}
// 删除货架
export function remove(data) {
  return request({
    url: '/goodsShelvesInfo/removeByIds',
    method: 'delete',
    data
  })
}
// 删除货架-层
export function removeLayer(data) {
  return request({
    url: '/goodsShelvesLayer/removeByIds',
    method: 'delete',
    data
  })
}
// 修改货架
export function update(data) {
  return request({
    url: '/goodsShelvesInfo/update',
    method: 'put',
    data
  })
}
// 货架排序
export function sort(data) {
  return request({
    url: '/goodsShelvesInfo/sort',
    method: 'put',
    data
  })
}

// 获取称重器量程
export function getWeightMax(params) {
  return request({
    url: '/goodsShelvesPosition/weightMax',
    method: 'get',
    params
  })
}
// 修改货位
export function updatePosition(data) {
  return request({
    url: '/goodsShelvesPosition/update',
    method: 'put',
    data
  })
}
// 查询货位信息
export function positionDetail(params) {
  return request({
    url: '/goodsShelvesPosition/queryOne',
    method: 'get',
    params
  })
}
